<?php

namespace Jb\Navigation\Decorator;

use Jb\Navigation\Menu;

class MenuDecorator extends Menu {

    private $menuObject;

    public function __construct(Menu $menuObject) {
        $this->menuObject = $menuObject;
    }

    public function addPage(Navigation $menuPage) {
        $this->menuObject->addPage($menuPage);
    }

    public function removePage(Navigation $menuPage) {
        $this->menuObject->removePage($menuPage);
    }

    public function compareTo(Object $currentRoute) {
        return $this->menuObject->compareTo($currentRoute);
    }

    public function getPages() {
        return $this->menuObject->getPages();
    }

}

?>